<%@ page language="java" import="java.util.*" contentType="text/html; charset=utf-8" %>
<%@ page import="com.fs.utils.CookieEncrypTool"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>修改图片</title>
<link href="<%=basePath%>AmazeUI-2.4.2/assets/css/admin.css" rel="stylesheet" type="text/css">
<link href="<%=basePath%>AmazeUI-2.4.2/assets/css/amazeui.css" rel="stylesheet" type="text/css">
<link href="<%=basePath%>css/personal.css" rel="stylesheet" type="text/css">
<link href="<%=basePath%>css/systyle.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
	function validate() {
		var product_pic = document.getElementById("product_pic");
		if (product_pic.value == "") {
			alert("请选择要上传的图片！");
			product_pic.focus();
			return false;
		}
		return true;
	}
</script>
</head>
<body>
	<jsp:include page="../top.jsp"></jsp:include>  <!-- 动态导入 -->
			<center>
			<h2>更换图片</h2>
					<form action="<%=basePath %>propicup.do?type=query&product_id=<%=request.getParameter("product_id") %>" method="post"
						enctype="multipart/form-data" onsubmit=" validate();">
						
						<div class="table_style" >
							<div class="uploade">
								<div align="center">
									<img src="<%=basePath%>images/1.jpg" width="150" height="150">
									<p>&nbsp;</p>
									<input name="product_pic" id="product_pic" type="file" value="上传照片">
									<%=request.getParameter("product_id") %>
								</div>
							</div>
							<div class="clear"></div>
							<div class="he"></div>
							<div align="center">
								<input name="submit" type="submit" class="save1" value="保存" > 
								<input name="reset" type="reset" class="cancel2" value="取消">
							</div>
						</div>
					</form>
			</center>		
	
	<!-- 网站公共尾部 -->
	<jsp:include page="../foot.jsp"></jsp:include>  <!-- 动态导入 -->
</body>
</html>